import request from '@/utils/request'

// 查询考勤明细列表
export function listAttendDetail(query) {
  return request({
    url: '/hr/attendDetail/list',
    method: 'get',
    params: query
  })
}

// 查询考勤明细详细
export function getAttendDetail(id) {
  return request({
    url: '/hr/attendDetail/' + id,
    method: 'get'
  })
}
// 查询考勤明细详细
export function getAttendTjDetail(type) {
  return request({
    url: '/hr/attendDetail/getAttendTjDetail/'+type,
    method: 'get',
    timeout:30000
  })
}

// 新增考勤明细
export function addAttendDetail(data) {
  return request({
    url: '/hr/attendDetail',
    method: 'post',
    data: data
  })
}

// 修改考勤明细
export function updateAttendDetail(data) {
  return request({
    url: '/hr/attendDetail',
    method: 'put',
    data: data
  })
}

// 删除考勤明细
export function delAttendDetail(id) {
  return request({
    url: '/hr/attendDetail/' + id,
    method: 'delete'
  })
}
